package com.hdyg.sixg.adapter;

import android.support.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hdyg.sixg.R;
import com.hdyg.sixg.entry.IncomeRecordBean;
import java.util.List;

/**
 * @author CZB
 * @describe 收益记录适配器
 * @time 2019/3/20 14:22
 */
public class IncomeRecordAdapter extends BaseQuickAdapter<IncomeRecordBean.ListBean, BaseViewHolder> {
    public IncomeRecordAdapter(int layoutResId, @Nullable List<IncomeRecordBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, IncomeRecordBean.ListBean item) {
        helper.setText(R.id.tv_left_top,item.getEvent_type());
        helper.setText(R.id.tv_left_bottom,item.getCreated_at());
        helper.setText(R.id.tv_right_center,item.getAmount());
    }
}
